local shenwei = fk.CreateSkill {

  name = "nya__shenwei",

  tags = { Skill.Compulsory, },

}



shenwei:addEffect(fk.DrawNCards, {
  name = "nya__shenwei",
  anim_type = "drawcard",
  frequency = Skill.Compulsory,
  events = {fk.DrawNCards},
  on_use = function(self, event, target, player, data)
    if player:hasSkill("nya__play") then
      data.n = data.n + 2
    else
      data.n = data.n + 3
    end
  end,
})

shenwei:addEffect("maxcards", {
  name = "#nya__shenwei_maxcards",
  correct_func = function(self, player)
    if player:hasSkill(shenwei.name) then
      if player:hasSkill("nya__play") then
        return 1
      else
        return 2
      end
    end
  end,
})

return shenwei